<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>订单管理</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png"
	href="${ctx}/admin/assets/i/favicon.png">
<link rel="apple-touch-icon-precomposed"
	href="${ctx}/admin/assets/i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<script src="${ctx}/admin/assets/js/echarts.min.js"></script>
<link rel="stylesheet" href="${ctx}/admin/assets/css/amazeui.min.css" />
<link rel="stylesheet"
	href="${ctx}/admin/assets/css/amazeui.datatables.min.css" />
<link rel="stylesheet" href="${ctx}/admin/assets/css/app.css">
<script src="${ctx}/admin/assets/js/jquery.min.js"></script>

</head>

<body data-type="widgets">
	<script src="${ctx}/admin/assets/js/theme.js"></script>
	<div class="am-g tpl-g">
		<!-- 内容区域 -->
		<div class="row-content">
			<div class="row-content am-cf">
				<div class="row">
					<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
						<div class="widget am-cf">
							<div class="widget-head am-cf">
								<div class="widget-title am-fl">订单管理</div>
								<div class="widget-function am-fr">
									<a href="javascript:;" class="am-icon-cog"></a>
								</div>
							</div>
							<div class="widget-body am-fr">
								<form class="am-form tpl-form-border-form tpl-form-border-br"
									method="post" action="${ctx}/order/update">
									<div class="am-form-group">
										<label for="id" class="am-u-sm-3 am-form-label">序号<span
											class="tpl-form-line-small-title">id</span>
										</label>
										<div class="am-u-sm-9">
											<input type="text" class="tpl-form-input" id="id" name="id" value="${order.id}"
												readonly="readonly" placeholder="请输入序号">
										</div>
									</div>

									<div class="am-form-group">
										<label for="title" class="am-u-sm-3 am-form-label">旅游主题
											<span class="tpl-form-line-small-title">title</span>
										</label>
										<div class="am-u-sm-9">
											<input type="text" class="tpl-form-input" id="title"
												name="title"  value="${order.title}" placeholder="请输入旅游主题">
										</div>
									</div>
									<div class="am-form-group">
										<label for="count" class="am-u-sm-3 am-form-label">旅行人数
											<span class="tpl-form-line-small-title">count</span>
										</label>
										<div class="am-u-sm-9">
											<input type="text" class="tpl-form-input" id="count"
												name="count"  value="${order.count}" placeholder="请输入旅行人数">
										</div>
									</div>
									<div class="am-form-group">
										<label for="time" class="am-u-sm-3 am-form-label">旅行花费时间
											<span class="tpl-form-line-small-title">time</span>
										</label>
										<div class="am-u-sm-9">
											<input type="text" class="tpl-form-input" id="time"
												name="time"  value="${order.time}" placeholder="请输入旅行花费时间">
										</div>
									</div>
									<div class="am-form-group">
										<label for="startDate" class="am-u-sm-3 am-form-label">开始时间
											<span class="tpl-form-line-small-title">startDate</span>
										</label>
										<div class="am-u-sm-9">
											<input type="date" class="tpl-form-input" id="startDate"
												name="startDate"  
												value="${order.startDate}" placeholder="请输入开始时间">
										</div>
									</div>
									<div class="am-form-group">
										<label for="endDate" class="am-u-sm-3 am-form-label">结束时间
											<span class="tpl-form-line-small-title">endDate</span>
										</label>
										<div class="am-u-sm-9">
											<input type="date" class="tpl-form-input" id="endDate"
												name="endDate" value="${order.endDate}" placeholder="请输入结束时间">
										</div>
									</div>
									<div class="am-form-group">
										<label for="zt" class="am-u-sm-3 am-form-label">状态 <span
											class="tpl-form-line-small-title">zt</span>
										</label>
										<div class="am-u-sm-9">
											<input type="text" class="tpl-form-input" id="zt" name="zt" value="${order.zt}" 
												placeholder="请输入状态">
										</div>
									</div>
									
									<div class="am-form-group">
										<label for="remark" class="am-u-sm-3 am-form-label">备注<span
											class="tpl-form-line-small-title">remark</span>
										</label>
										<div class="am-u-sm-9">
											<input type="text" class="tpl-form-input" id="remark"
												name="remark"  value="${order.remark}" placeholder="请输入备注">
										</div>
									</div>
									<div class="am-form-group">
										<label for="lineId" class="am-u-sm-3 am-form-label">线路
											<span class="tpl-form-line-small-title">lineId</span>
										</label>
										<div class="am-u-sm-9">
											<select name="lineId" id="lineId">
												<option style="color: red">空</option>
												<c:forEach items="${lines }" var="item">
												<c:if test="${item.id == order.line.id }">
													<option style="color: red" selected="selected" value="${item.id }">${item.lineName }</option>
												</c:if>
													<option style="color: red" value="${item.id }">${item.lineName }</option>
												</c:forEach>
											</select>
										</div>
									</div>
									<div class="am-form-group">
										<label for="agencyId" class="am-u-sm-3 am-form-label">旅行社
											<span class="tpl-form-line-small-title">agencyId</span>
										</label>
										<div class="am-u-sm-9">
											<select name="agencyId" id="agencyId">
												<option style="color: red">空</option>
												<c:forEach items="${agencys }" var="item">
												<c:if test="${item.id == order.agency.id }">
													<option style="color: red" selected="selected" value="${item.id }">${item.name }</option>
												</c:if>
													<option style="color: red" value="${item.id }">${item.name }</option>
												</c:forEach>
											</select>
										</div>
									</div>
									<div class="am-form-group">
										<label for="guideId" class="am-u-sm-3 am-form-label">导游
											<span class="tpl-form-line-small-title">guideId</span>
										</label>
										<div class="am-u-sm-9">
											<select name="guideId" id="guideId">
												<option style="color: red">空</option>
												<c:forEach items="${guides }" var="item">
												<c:if test="${item.id == order.guide.id }">
													<option style="color: red" selected="selected" value="${item.id }">${item.name }</option>
												</c:if>
													<option style="color: red" value="${item.id }">${item.name }</option>
												</c:forEach>
											</select>
										</div>
									</div>
									<div class="am-form-group">
										<div class="am-u-sm-9 am-u-sm-push-3">
											<button type="submit"
												class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<script src="${ctx}/admin/assets/js/amazeui.min.js"></script>
	<script src="${ctx}/admin/assets/js/amazeui.datatables.min.js"></script>
	<script src="${ctx}/admin/assets/js/dataTables.responsive.min.js"></script>
	<script src="${ctx}/admin/assets/js/app.js"></script>
</body>

</html>